//
//  ST_TianDailyTaskSectionReusableView.swift
//  btvideo
//
//  Created by Jason on 2021/10/28.
//  Copyright © 2021 JarvanZhang. All rights reserved.
//

import UIKit

class ST_TianDailyTaskSectionReusableView: UICollectionReusableView {
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.addSubview(titleLabel)
        titleLabel.snp.makeConstraints { make in
            make.left.equalToSuperview().offset(15)
            make.centerY.equalToSuperview()
        }
        
        self.backgroundColor = .white
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    fileprivate lazy var titleLabel:UILabel = {
        let l = UILabel()
        l.textColor = #colorLiteral(red: 0, green: 0, blue: 0, alpha: 1)
        l.font = .systemFont(ofSize: 14, weight: .regular)
        return l
    }()
    
    
    var titleStr = ""{
        didSet{
            titleLabel.text = titleStr
        }
    }
}
